package com.zzb.projectfactory.core.loginhistory.entity;

import com.zzb.projectfactory.framework.autodoc.annotation.AutoDocField;
import com.zzb.projectfactory.framework.common.BaseEntity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;


/**
* 登录历史 实体类
*/
@Table(name = "pf_login_history")
@Entity
public class LoginHistory extends BaseEntity {
    @Column(name = "username")
    @AutoDocField(value = "用户名")
    private String username; //用户名
    @Column(name = "login_ip")
    @AutoDocField(value = "登录ip")
    private String loginIp; //登录ip

    /*----------------------get set 方法----------------------*/
    public String getusername() {return username;}
    public void setusername(String username){this.username = username == null ? null : username.trim();}
    public String getLoginIp() {return loginIp;}
    public void setLoginIp(String loginIp){this.loginIp = loginIp == null ? null : loginIp.trim();}
    /*----------------------toString 方法----------------------*/
    @Override
    public String toString() {
        return "LoginHistory{" +
        "id='" + getId() + '\'' + ',' + 
        "username='" + getusername() + '\'' + ',' +
        "loginIp='" + getLoginIp() + '\'' + ',' + 
        "createTime='" + getCreateTime() + '\'' + ',' + 
        "creator='" + getCreator() + '\'' + ',' + 
        "updateTime='" + getUpdateTime() + '\'' + ',' + 
        "updater='" + getUpdater() + '\'' + ',' + 
        "activate='" + getActivate() + '\'' + 
        '}';
    }
}
